﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class EnemyDeathPrioritizedFollowPosition : PrioritizedFollowPosition
{
    private float waitSeconds = 2.0f;
    private float waitTime = 0.0f;

    public EnemyDeathPrioritizedFollowPosition(Vector3 position)
    {
        Position = position;
    }

    public override void Update(float time)
    {
        waitTime += time;
        if (waitTime >= waitSeconds)
        {
            Priority = PrioritizedFollowPosition.EXPIRED;
        }
        else
        {
            Priority = PrioritizedFollowPosition.ENEMY_EXPLOSION;
        }

    }
}
